(function($){
	$.fn.showShadowBg=function(options){
		var thisClick =$(this);
		var defaults= {"shadowBg":".shadow-bg"};
		var settings= $.extend(defaults, options ||{});
		$(this).on("mouseover", function(){
			$(this).find(settings.shadowBg).animate({"height": "100%"}, 100);
			$(this).find(".btn").animate({"bottom":"-1","height":"36"}, 10);
		});
		$(this).on("mouseleave", function(){
			thisClick.find(settings.shadowBg).animate({"height": "0"}, 100);
			thisClick.find(".btn").animate({"bottom":(parseFloat($(this).find(".btn").outerHeight())-parseFloat($(this).find(".btn").height()))/-1,"height":"0"}, 10);
		});
	}
	$.fn.showMore=function(options){
		var defaults= {"contentBox":".profile-blast p"};
		var settings= $.extend(defaults, options ||{});
		$(this).on("click", function(){
			if($(this).hasClass("active")){
				$(this).removeClass("active");
				$(settings.contentBox).removeClass("active");
				$('.profile-blast p').perfectScrollbar('destroy');
				$(".three-dot").show();
			}
			else{
				$(this).addClass("active");
				$(settings.contentBox).addClass("active");
				$('.profile-blast p').perfectScrollbar({
				  wheelSpeed: 20,
				  wheelPropagation: false,
				  suppressScrollX: true
				});
				$(".three-dot").hide();
			}
		});
	}
}(jQuery));


(function($){
	$(document).ready(function(e) {
		$(".publish-item").showShadowBg();
		$(".btn-more").showMore();
		$(".pager-control .btn").showMoreContent();
    });
}(jQuery));